define(function () {
    'use strict';

    function ctrl($scope, $stateParams, $ionicPopup, CommonService, LocalCacheService) {
        function init() {
            $scope.shares = {
                name: '中国移动',
                code:'666666',
                count:0,
                marketValue:1000.00
            };
            $scope.sharesLits = [{
                name: '中国联通 600060',
                count: 100,
                date: new Date(),
                marketValue: 10000.00,
                rate: 60
            }, {
                name: '中国联通 600060',
                count: 1200,
                date: new Date,
                marketValue: 10000.00,
                rate: 60
            }]
        }

        $scope.$on('$ionicView.loaded', function () {
            init();
        });
    }

    ctrl.$inject = ['$scope', '$stateParams', '$ionicPopup', 'CommonService', 'LocalCacheService'];
    return ctrl;
});